


set -l prog lerna
set -l subcmds 'init add-caching run create ls clean exec diff version publish'

complete -c $prog -f


lyt-defcmd-root $prog $subcmds
lyt-defcmd-root-1 $prog add-caching $subcmds 'set up nx to do cache. nx.json auto gened'



# init #############################################################################
set -l subcmds 'nginx redis rabbitmq mongo'

lyt-defcmd-F $prog init
lyt-defcmd-l $prog init dryRun 'spec this op is temp, auto revoke'
lyt-defcmd-l $prog init packages 'spec package match mode'

# run #############################################################################


lyt-defcmd-l $prog run scope 'spec the scope repo of scripts'
lyt-defcmd-l $prog run since 'spec the source branch target packages'
lyt-defcmd-l $prog run concurrency 'spec the max concurrent tasks '
lyt-defcmd-l $prog run skip-nx-cache 
lyt-defcmd-l $prog run npm-client


# clean ###############################################
lyt-defcmd-l $prog clean scope 'spec the scope repo of scripts'


# publish ######################################################

lyt-defcmd-l $prog publish directory 'spec the scope repo of scripts'
